-- GENERATED SPELL FOR [Onslaught Raven Bishop] --


function spell0_29338(pUnit, Event) --@Blessing of the Light,n/a--
pUnit:FullCastSpellOnTarget(54323,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29338', 3000, 1)
end

function spell1_29338(pUnit, Event) --@Raven Flock,n/a--
pUnit:FullCastSpellOnTarget(50740,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29338', 3000, 1)
end

function spell2_29338(pUnit, Event) --@Raven Heal,Self--
pUnit:FullCastSpellOnTarget(50750,pUnit)
pUnit:RegisterEvent('Sorts_29338', 5000, 1)
end

function Sorts_29338(pUnit, Event)
local choix_sorts_29338 = math.random(0, 2)
if choix_sorts_29338 == 0 then
pUnit:RegisterEvent('spell0_29338', 1, 1)
end
if choix_sorts_29338 == 1 then
pUnit:RegisterEvent('spell1_29338', 1, 1)
end
if choix_sorts_29338 == 2 then
pUnit:RegisterEvent('spell2_29338', 1, 1)
end
end

function mob29338_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29338', math.random(1500, 3000), 1)
end

function mob29338_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29338_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29338_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29338, 1, 'mob29338_Action')
RegisterUnitEvent(29338, 2, 'mob29338_Leave')
RegisterUnitEvent(29338, 3, 'mob29338_Kill')
RegisterUnitEvent(29338, 4, 'mob29338_Die')
